package com.ljz.service.impl;

import com.ljz.entity.Car;
import com.ljz.mapper.CarMapper;
import com.ljz.service.CarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CarServiceImpl implements CarService {

    @Autowired
    private CarMapper carMapper;

    @Override
    public List<Car> getCarList() {
        return carMapper.findAll();
    }

    @Override
    public int delCarByIds(List<Integer> ids) {
        return carMapper.delCarByIds(ids);
    }
}
